package com.loie.xcx.service;

import com.loie.xcx.model.bo.QuotationBO;
import com.loie.xcx.model.bo.QuotationLineBO;
import com.loie.xcx.model.dto.QuotationLineQueryDTO;
import com.loie.xcx.model.dto.QuotationQueryDTO;

import java.util.List;

/**
 * @author zhl
 */
public interface QuotationService {
    List<QuotationBO> getQuotationList(QuotationQueryDTO dto);

    int getQuotationListTotal(QuotationQueryDTO dto);
    QuotationBO getQuotation(QuotationQueryDTO dto);
    List<QuotationLineBO> getQuotationLineList(QuotationQueryDTO quotationQueryDTO);

    int getQuotationLineListTotal(QuotationQueryDTO dto);

    QuotationLineBO getQuotationLine(QuotationLineQueryDTO dto);
    QuotationLineBO getQuotationLinePhoto(QuotationLineQueryDTO dto);
    String addQuotation(QuotationBO quotationBO, List<QuotationLineBO> list);

    void updateQuotation(QuotationBO quotationBO, List<QuotationLineBO> list);

    void deleteQuotation(QuotationBO quotationBO);
}
